﻿using System;

namespace diantou.dataModel
{
    /// <summary>
    /// 回答邀请
    /// </summary>
    [fastCSharp.emit.jsonSerialize(IsAllMember = true)]
    [fastCSharp.emit.jsonParse(IsAllMember = true)]
    [fastCSharp.emit.dataSerialize(IsReferenceMember = false, IsMemberMap = false)]
    [fastCSharp.code.cSharp.webView.clientType(Name = "diantou.questionInvite")]
    [fastCSharp.code.cSharp.sqlModel]
    public partial class questionInvite
    {
        /// <summary>
        /// 问题标识
        /// </summary>
        [fastCSharp.emit.dataMember(PrimaryKeyIndex = 1)]
        public int QuestionId;
        /// <summary>
        /// 被邀请用户标识
        /// </summary>
        [fastCSharp.emit.dataMember(PrimaryKeyIndex = 2)]
        public int UserId;
        /// <summary>
        /// 邀请者用户标识
        /// </summary>
        public int InviterId;
        /// <summary>
        /// 忽略类型
        /// </summary>
        public class inviteIgnore : Attribute
        {
            /// <summary>
            /// 忽略类型
            /// </summary>
            public string Why;
        }
        /// <summary>
        /// summary
        /// </summary>
        public enum inviteIgnoreType : byte
        {
            /// <summary>
            /// 待处理
            /// </summary>
            [inviteIgnore(Why = "待处理")]
            Pending,
            /// <summary>
            /// 已忽略
            /// </summary>
            [inviteIgnore(Why = "已忽略")]
            Ignore,
            /// <summary>
            /// 已回答
            /// </summary>
            [inviteIgnore(Why = "已回答")]
            Answered = 255
        }
        /// <summary>
        /// 忽略类型
        /// </summary>
        [fastCSharp.emit.dataMember(DataType = typeof(byte))]
        public inviteIgnoreType IgnoreType;
        /// </summary>
        /// 忽略原因
        /// </summary>
        [fastCSharp.emit.dataMember(MaxStringLength = 256)]
        public string WhyIgnore = string.Empty;
        /// <summary>
        /// 邀请时间
        /// </summary>
        public System.DateTime InviteTime = fastCSharp.date.NowSecond;
        /// <summary>
        /// 邀请积分
        /// </summary>
        public int Point;
    }
}
